gdk/surface: Reset position after hiding
authorJonas Ådahl <jadahl@gmail.com>
Wed, 19 Feb 2020 08:31:32 +0000 (09:31 +0100)
committerJonas Ådahl <jadahl@gmail.com>
Wed, 19 Feb 2020 08:47:18 +0000 (09:47 +0100)
The x and y position of GdkSurface is only valid when visible, so reset
them to their inital state after hiding.

gdk/gdksurface.c

index 7eb4280f8b5b9032bb0dc1f604762fffa740f95a..9790be98a3a8c8bdca7b01b97da21a087a9e2c71 100644 (file)
@@ -2083,6 +2083,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
     }
 
   GDK_SURFACE_GET_CLASS (surface)->hide (surface);
+
+  surface->x = 0;
+  surface->y = 0;
 }
 
 /**